﻿using Web_Oto.Bases;
using Web_Oto.Data;

namespace Web_Oto.Business
{
    public class PaymentBus : busObject
    {
        #region Constructor

        public PaymentBus()
        {
            m_objDAL = new PaymentDal(connectionstring, connectiontype);
        }

        public PaymentBus(string connectionString)
            : base(connectionString)
        {
            m_objDAL = new PaymentDal(connectionstring, connectiontype);
        }

        public PaymentBus(string connectionString, string connectionType)
            : base(connectionString, connectionType)
        {
            m_objDAL = new PaymentDal(connectionstring, connectiontype);
        }

        private PaymentDal m_objDAL;

        #endregion

        #region methods

        public Payment GetPayment()
        {
            return m_objDAL.GetPayment();
        }

        public int Save(string name, string description)
        {
            return m_objDAL.Save(name, description);
        }

        #endregion
    }
}
